//
//  AppDelegate.swift
//  weibo
//
//  Created by youyongpeng on 15/11/21.
//  Copyright © 2015年 youyongpeng. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

        // 设置全局外观
        setupAppearance()
        
        // 创建 window
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        window?.backgroundColor = UIColor.whiteColor()
        window?.rootViewController = YYPNewFeatureController()
        window?.makeKeyAndVisible()
        
        
        return true
    }
    
    // 设置全局属性
    private func setupAppearance() {
    
        UITabBar.appearance().tintColor = UIColor.orangeColor()
        
        UINavigationBar.appearance().tintColor = UIColor.orangeColor()
    }

}

